﻿@using Think.Lenovo.Com.Models;

@{
    ViewBag.Title = "Student";
}
<div id="hello">中国""人''民;</div>
<script type="text/javascript" src="/Scripts/Serialize.js"></script>
<script type="text/javascript" src="/Scripts/lib/jquery-1.4.4.js"></script>
<script type="text/javascript">
    
</script>
<script type="text/javascript">
    window.onload = function () {
        jQuery.ajax({
            url:"/Home/Ajax",
            dataType:"json",
            type:"get",
            success:function(json){
                for (item in json) {
                    jQuery("#students").append(json[item].Id + ":" + json[item].Name + "<br>");
                }
            }
        });
    }
</script>

<div id="students">

</div>
    @{ StudentModel sm = (StudentModel)ViewData["student"];}
    @sm.Id<br />
    @sm.Name <br/>
<h2>
<form action="/Home/ShowStudent" method="post">
学生id:<input type="text" name="stu.Id" />
姓名:<input type="text" name="stu.Name" />
<input type="submit" value="确定" />
</form>

